<?php
namespace app\common\lib;


class Time{
    /**
     * @param  int  $type
     * @return float|int
     */
    public static function userLoginExpiresTime($type=2){
        $type = !in_array($type,[1,2])?7:30;
        return $type * 30 * 24;
    }
}